package com.dzx.design.structural.decorator.v2;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月01日 15:30:56
 */
public abstract class AbstractDecorator extends  ABattercake {
    private ABattercake aBattercake;

    public AbstractDecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    @Override
    public String getDesc() {
        return aBattercake.getDesc();
    }

    @Override
    public int cost() {
        return aBattercake.cost();
    }
}
